﻿using ZeroSum.Models;

namespace ZeroSum.Exceptions;

/// <summary>
///     不支持的操作使用此异常抛出
/// </summary>
public class NotSupportedException : BusinessException
{
    private NotSupportedException(string message) : base(message, ResponseStatus.NotSupported)
    {
    }

    public static NotSupportedException Of(string message)
    {
        return new NotSupportedException(message);
    }
}